#include "xlcomm/net/poller/epoll_poller.h"
#include "xlcomm/net/poller/poller.h"
#include "xlcomm/net/poller/select_poller.h"

namespace xlcomm {
namespace net {

Poller* Poller::CreatePoller(EventLoop* loop) {
#if defined(__linux__)
  return new EPollPoller(loop);
#else
  return new SelectPoller(loop);
#endif
}

}  // namespace net
}  // namespace xlcomm
